import request from '@/utils/request';

const evaluate = {
  list(params) {
    return request.get('/cgzh/achievementEvaluate/list', {params});
  },
  myList(params) {
    return request.get('/cgzh/achievementEvaluate/myList', {params});
  },
  add(data) {
    return request.post('/cgzh/achievementEvaluate/add', data);
  },
  update(data) {
    return request.post('/cgzh/achievementEvaluate/update', data);
  },
  getAll(id) {
    return request.get(`/cgzh/achievementEvaluate/allDetail/${id}`);
  },
  get(id) {
    return request.get(`/cgzh/achievementEvaluate/detail/${id}`);
  },
  getByAchievementTypeAndId(params) {
    return request.get(`/cgzh/achievementEvaluate/getByAchievementTypeAndId`, { params });
  },
  delete(id) {
    return request.post(`/cgzh/achievementEvaluate/delete/${id}`);
  },
  submit(data){
    return request.post(`/cgzh/achievementEvaluate/submit`, data);
  }
}

export default evaluate;
